package com.travel.member;

import com.travel.member.entity.MemberEntity;
import com.travel.member.service.MemberService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@SpringBootTest
@RunWith(SpringRunner.class)
public class test {
    @Autowired
    private MemberService memberService;

    @Test
    public void test1() {
        MemberEntity memberEntity = new MemberEntity();
        memberEntity.setUsername("张三");
        memberService.save(memberEntity);
    }
}
